package com.deep.spring.v3;


import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

@RestController
@RequestMapping("/test")
public class TestController {

    @GetMapping("/tt")
    @ResponseBody
    public ModelAndView xx() throws Exception {
        throw new CustomGenericException("E888", "This is custom message");
    }
}
